import $$ from 'cmn-utils';

export async function loginAdmin(payload) {
  return $$.post('/login/admin', payload);
}

export async function loginTeacher(payload) {
  return $$.post('/login/teacher', payload);
}

export async function loginGeneral(payload) {
  return $$.post('/login/general', payload);
}

export async function getRoleList() {
  return $$.get('/login/roleList');
}